package it.webrules.deploymanager.webapp.transentities;

import java.net.URI;
import java.util.ArrayList;
import java.util.List;

public class Operation {

	private String name;
	private URI path;
	private String method;
	private List<Parameter> parameters;

	public Operation() {
		this.parameters = new ArrayList<>();
		this.method = "GET";
	}

	public Operation(String name) {
		this();
		this.name = name;
	}

	public Operation(String name, List<Parameter> parameters) {
		this();
		this.name = name;
		this.parameters = parameters;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public URI getPath() {
		return path;
	}

	public void setPath(URI path) {
		this.path = path;
	}

	public List<Parameter> getParameters() {
		return parameters;
	}

	public void setParameters(List<Parameter> parameters) {
		this.parameters = parameters;
	}

	public String getMethod() {
		return method;
	}

	public void setMethod(String method) {
		this.method = method;
	}

}
